package cn.huiyunche.base.service.form;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @FileName: cn.huiyunche.app.service.form
 * @Description: 同城配送确定下车表单
 * @author: Aaron
 * @date: 2016/11/17 下午2:19
 */
public class IntracityOrderForm {

    //是否是同城配送订单
    private Boolean isVeneer;

    // 板车类型
    @NotNull(message = "请选择板车类型！")
    private Integer trailerId;

    // 发运地址id
    @NotNull(message = "发车地址不能为空！")
    private Long depaId;

    // 目的地地址id
    @NotNull(message = "收车地址不能为空！")
    private Long destId;

    // 提车日期
    @NotNull(message = "提车日期不能为空！")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private Date deliveryDate;

    //提车时间
    @NotBlank(message = "请选择提车时间！")
    private String deliveryTime;

    // 送达日期
    @NotNull(message = "到达日期不能为空！")
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private Date arriveDate;

    // 送达时间
    @NotBlank(message = "请选择交车时间！")
    private String arriveTime;

    //车辆数
    @NotNull(message = "车辆数不能为空！")
    private Integer vehicleNum;

    // 车型列表
    @NotBlank(message = "请选择车型！")
    private String vehicles;

    //备注说明
    private String comment;

    // 支付订单 角色分类10:下单人付20:其他商户付款
    // @NotNull(message="请选择付款方！")
    private Integer payRole;

    // 20:其他商户付款 商户手机号
    private String phone;

    public Boolean getIsVeneer() {
        return isVeneer;
    }

    public void setIsVeneer(Boolean isVeneer) {
        this.isVeneer = isVeneer;
    }

    public Integer getTrailerId() {
        return trailerId;
    }

    public void setTrailerId(Integer trailerId) {
        this.trailerId = trailerId;
    }

    public Long getDepaId() {
        return depaId;
    }

    public void setDepaId(Long depaId) {
        this.depaId = depaId;
    }

    public Long getDestId() {
        return destId;
    }

    public void setDestId(Long destId) {
        this.destId = destId;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(String deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Date getArriveDate() {
        return arriveDate;
    }

    public void setArriveDate(Date arriveDate) {
        this.arriveDate = arriveDate;
    }

    public String getArriveTime() {
        return arriveTime;
    }

    public void setArriveTime(String arriveTime) {
        this.arriveTime = arriveTime;
    }

    public Integer getVehicleNum() {
        return vehicleNum;
    }

    public void setVehicleNum(Integer vehicleNum) {
        this.vehicleNum = vehicleNum;
    }

    public String getVehicles() {
        return vehicles;
    }

    public void setVehicles(String vehicles) {
        this.vehicles = vehicles;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getPayRole() {
        return payRole;
    }

    public void setPayRole(Integer payRole) {
        this.payRole = payRole;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

}